﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thanhlichtek.BOS.Ongage
{
    public class Result
    {
        public Metadata metadata;
        public Payload payload;
        public class Metadata
        {
            public String error = "";
            public String type = "";
            public String code = "";
            public String message = "";

        }
        public class Payload
        {
            public String code = "";
            public String message = "";
            public String _id = "";
        }

        public string GetMetadataMessage()
        {
            return metadata == null ? "" : metadata.message;
        }

        public string GetPayloadMessage()
        {
            return payload == null ? "" : payload.message;
        }
    }

    public class LookupResult
    {
        public ContactLookupResult[] payload { get; set; }
    }
}
